<include file="Public/head" />

<body class="no-skin">
    <include file="Public/header" />
    <div class="main-container" id="main-container">
        <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {}
        </script>
        <include file="Public/sidebar" />
        <div class="main-content">
            <div class="main-content-inner">
                <!-- #section:basics/content.breadcrumbs -->
                <include file="Public/breadcrumbs" />
                <!-- /section:basics/content.breadcrumbs -->
                <div class="page-content">
                    <include file="Public/set" />
                    <!-- /section:settings.box -->
                    <div class="row">
                        <div class="col-xs-12">
                            <!-- PAGE CONTENT BEGINS -->
                            <div class="row">
                                <form class="form-inline" action="{:U('uselist')}" method="get">
                                    <label class="inline">用户名：</label>
                                    <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
                                    <select name="cardtype" class="form-control">
                                        <option value="0">请选择卡券类型</option>
                                        {$typeList}
                                    </select>
                                    <button type="submit" class="btn btn-purple btn-sm">
                                        <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 搜索
                                    </button>
                                </form>
                            </div>
                            <div class="space-4"></div>
                            <div class="row">
                                <form id="del-form" method="post" action="{:U('del')}">
                                    <table class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th width="5%">ID</th>
                                                <th width="5%">类型</th>
                                                <th width="5%">会员名</th>
                                                <th width="10%">卡券编号</th>
                                                <th width="10%">卡券密码</th>
                                                <th width="5%">金额</th>
                                                <th width="15%">有效期</th>
                                                <th width="10%">使用规则</th>
                                                <th width="8%">使用时间</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <empty name="list">
                                                <tr>
                                                    <td colspan="13" class="center">暂时没有记录</td>
                                                </tr>
                                                <else/>
                                                <volist name="list" id="vo">
                                                    <tr>
                                                        <td class="sorting_1">{$vo.id}</td>
                                                        <td class=" "> {$vo.typename} </td>
                                                        <td class=" "> {$vo.uname} </td>
                                                        <td class=" ">{$vo.cardno}</td>
                                                        <td class=" ">{$vo.cardpwd}</td>
                                                        <td class=" ">{$vo.money}</td>
                                                        <td class=" ">
                                                            <if condition="$vo.stime neq 0">{$vo.stime|date='Y-m-d',###}至{$vo.etime|date='Y-m-d',###}</if>
                                                        </td>
                                                        <td class=" ">
                                                            <if condition="$vo.usemoney neq 0">满{$vo.usemoney}元使用</if>
                                                        </td>
                                                        <!-- <td class=" ">{$vo.ctime|date='Y-m-d',###}</td> -->
                                                        <td class=" "> {$vo.usetime|date='Y-m-d',###} </td>
                                                    </tr>
                                                </volist>
                                            </empty>
                                        </tbody>
                                    </table>
                                </form>
                                {$page}
                            </div>
                            <!-- PAGE CONTENT ENDS -->
                        </div>
                        <!-- /.col -->
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
        </div>
        <!-- /.main-content -->
        <include file="Public/footer" />
    </div>
    <!-- /.main-container -->
    <include file="Public/footerjs" />
    <!-- inline scripts related to this page -->
</body>

</html>